<%@page import="com.cn.dao.ZhenduanDao"%>
<%@page import="com.cn.entity.Doctor"%>
<%@page import="com.cn.entity.User"%>
<%@page import="com.cn.entity.Zhenduan"%>
<%@page import="com.cn.entity.Department"%>
<%@page import="java.util.List"%>
<%@page import="com.cn.dao.DepartmentDao"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>

<body>

<%Object o=request.getParameter("zhenduanid");

Object ooo=session.getAttribute("doctor");


%>
<%=o.toString() %>
<%=ooo.toString() %>

<%
if (o!=null&&ooo!=null){
	int zhenduanid=Integer.parseInt(o.toString());
	ZhenduanDao zd=new ZhenduanDao();
	Zhenduan zhenduan=zd.scanOne(zhenduanid);
	Department depm=zhenduan.getDepartment();
	User user=zhenduan.getUser();
	Doctor doctor=(Doctor)ooo;
	
   
  
%>



<h4>诊断单</h4>
<form action="ZhenduanUpdateAction">
<table>

<tr>
<td>患者姓名</td>

<td><%=user.getXingming() %> </td>
</tr>

<tr>
<td>证件号码</td>

<td><%=user.getIdentity() %></td>

</tr>
<tr>
<td>挂号时间</td>

<td><%=zhenduan.getDate() %></td>

</tr>
<tr>
<td>科室</td>

<td><%=depm.getDepartmentname() %></td>

</tr>
</table>







<table>



<tr> <td>    

诊断结果
  

</td>
</tr>
<tr> <td><input type="text" name="result">  </td></tr>
<tr> <td>  </td></tr>
<tr><td>医生建议</td></tr>

<tr> <td> <input type="text" name="advise"> </td></tr>
<tr> <td>  
<input type="hidden" name="zhenduanid" value="<%=zhenduan.getZhenduanid() %>">
<input type="hidden" name="userid" value="<%=zhenduan.getUser().getUserid() %>">
<input type="hidden" name="departmentid" value="<%=zhenduan.getDepartment().getDepartmentid() %>">

</td></tr>
<tr> <td>  医生签名</td> <td><%=doctor.getXingming() %> </td>  </tr>
<tr> <td> <input type="hidden" name="doctorid" value="<%=doctor.getDoctorid() %>"> </td></tr>


<tr><td><input type="submit" value="提交"></td></tr>


</table> 
</form>

<%} 
else {%>
<p>404</p> <%} %>   
</body>





</html>